﻿using UnityEngine;
using UnityEngine.EventSystems;
using Utilities;

namespace Script
{
    public class CheckPoint : MonoBehaviour
    {
        private void OnTriggerEnter2D(Collider2D other)
        {
            if (other.CompareTag("Rock"))
            {
                EventHandler.CallEnterTrigger();
            }
        }
    }
}